package com.zijidelu.luframework.base.message;

/**
 * 消息接口。
 *
 * @author ZIJIDELU
 * @date 2024/5/1 12:42
 */
public interface Message {

    Integer getCode();

    String getText();

    boolean isSuccess();


    default boolean isFail() {
        return !isSuccess();
    }

}
